<%--
  Created by IntelliJ IDEA.
  User: wangmin
  Date: 16-5-13
  Time: 上午6:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <%@ include file="/include/easyuilibs.jsp" %>
    <style>
        .query-input {
            width: 150px;
        }
    </style>
</head>
<body class="gray-bg">
<div id="tb" class="query-div">
    <form id="queryForm">
        <div>
            <span>名称:</span>
            <input id="search_LIKE_name" class="easyui-textbox" class="query-input">
            <span>备注:</span>
            <input id="search_LIKE_description" class="easyui-textbox" class="query-input">
            <a href="#" class="easyui-linkbutton" id="queryCustomerBtn" data-options="iconCls:'icon-search'">查询</a>
        </div>
    </form>
</div>
<div id="pagination-div">
    <table id="grid" toolbar="#toolbar"></table>
</div>
<div id="toolbar">
    <shiro:hasPermission name="create_customer">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" id="addCustomer" plain="true">新增</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="update_customer">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" id="editCustomer" plain="true">修改</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="delete_customer">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" id="deleteCustomer"
           plain="true">删除</a>
    </shiro:hasPermission>
</div>

<div id="dlg" class="easyui-dialog" style="width:450px;height:380px;padding:10px 20px"
     closed="true" buttons="#dlg-buttons">
    <div class="ftitle">客户信息</div>
    <form id="fm" method="post" novalidate>
        <input type="hidden" name="id" id="id">

        <div class="fitem">
            <label>名称:</label>
            <input name="name" id="name" class="easyui-textbox" required="true">
        </div>
        <div class="fitem">
            <label>登录密码:</label>
            <input id="pwd1" name="pwd" type="password" class="easyui-textbox" required="true">
        </div>
        <div class="fitem">
            <label>确认密码:</label>
            <input id="pwd2" name="pwd2" type="password" validType="equalTo['#pwd1']" class="easyui-textbox"
                   required="true" invalidMessage="两次输入密码不匹配">
        </div>
        <div class="fitem">
            <label>备注:</label>
            <input id="description" name="description" class="easyui-textbox" data-options="multiline:true"
                   style="height:100px">
        </div>
    </form>
</div>
<div id="dlg-buttons">
    <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" id="submitCustomerBtn">保存</a>
    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel"
       onclick="javascript:$('#dlg').dialog('close')">取消</a>
</div>


<script src="${cxp}/js/egift/customer.js"></script>
</body>
</html>
